#!/usr/bin/python

import wx

class PanelMine(wx.Panel):

	def __init__(me,parent,id=-1):
		wx.Panel.__init__(me,parent,id)
		me.Bind(wx.EVT_PAINT, me.OnPaint)

	def OnPaint(me, evt):
		dc = wx.PaintDC(me)
		
		dc.SetBrush(wx.RED_BRUSH)
		dc.SetPen(wx.GREEN_PEN)
		dc.DrawRoundedRectangle(0,0,50,50,3)
		
		dc.GradientFillLinear(wx.Rect(0,51,50,50),wx.GREEN,wx.RED)
		
class FrameMine(wx.Frame):

	def __init__(
			me,parent=None,id=-1,title="Untitled",pos=wx.DefaultPosition,
			size=wx.DefaultSize,style=wx.DEFAULT_FRAME_STYLE
			):
			
		wx.Frame.__init__(me, parent, id, title, pos, size, style)
		PanelMine(me)
		

app = wx.PySimpleApp()frame = FrameMine()
frame.Show()
frame.Centre()app.MainLoop()